package top.zuli.package01.class06;

public class User3 {
    int id;
    String name;
    int age;
    //定义构造方法
    User3(int User3Id,String User3Name,int User3Age){
        id = User3Id;
        name = User3Name;
        age = User3Age;
    }

    public static void main(String[] args) {
        //使用构造方法创建对象
        User3 User3 = new User3(1,"张三",21);
        //查看User3信息
        System.out.println("id:"+User3.id+",name:"+User3.name+",age:"+User3.age);
    }
}
